﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.bandits {
    import Classes.*;
    import Classes.sim.*;
    import Display.CopsBanditsUI.*;
    import Classes.actions.*;
    import Engine.*;

    public class BanditActionSelection implements IActionSelection {

        protected var m_npc:NPC;

        public function BanditActionSelection(_arg1:NPC){
            this.m_npc = _arg1;
        }
        public function getNextActions():Array{
            var _local1:BanditSlidePick = (this.m_npc.slidePick as BanditSlidePick);
            if (((!((_local1 == null))) && (_local1.slideVisible))){
                return ([new ActionPlayAnimationOneLoop(this.m_npc, "idle")]);
            };
            return ([new ActionNavigateRandom(this.m_npc).setTimeout((MathUtil.random(15, 10) + Math.random())), new ActionPlayAnimation(this.m_npc, "idle", MathUtil.random(10, 7))]);
        }

    }
}//package Modules.bandits 
